<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'goods.label', default: 'Goods')}" />
		<title><g:message code="default.create.label" args="[entityName]" /></title>
	</head>
	<body>


	<div class="row">
		<div class="container">
			<ol class="breadcrumb">
				<li><g:link controller="goods" action="index">Good</g:link></li>
				<li>Create Good</li>
			</ol>
		</div>
	</div>
	<g:if test="${flash.message}">
		<div class="alert alert-warning">
			<a href="#" class="close" data-dismiss="alert">
			&times;
			</a>
			<strong>${flash.message}</strong>
		</div>
	</g:if>
	<g:hasErrors bean="${goodsInstance}">
		<div class="row">
			<div class="container">
				<div class="alert alert-danger" role="alert">
					<ul class="errors" role="alert">
						<g:eachError bean="${goodsInstance}" var="error">
							<li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message
									error="${error}"/></li>
						</g:eachError>
					</ul>
				</div>
			</div>
		</div>
	</g:hasErrors>


	<div class="raw">
			<div class="container col-md-6 col-md-offset-3">
				<div class="panel panel-primary">
					<div class="panel-heading" style="background-color: #222">新建图书</div>
					<div class="panel-body">
						<g:form url="[resource:goodsInstance, action:'save']" enctype="multipart/form-data" class="form-horizontal">
							<fieldset class="form">
								<g:render template="form"/>
							</fieldset>
							<fieldset class="buttons">
								<g:submitButton name="create" class="btn btn-success btn-block" value="确定"/>
							</fieldset>
						</g:form>
					</div>
				</div>
			</div>
		</div>
	</body>
</html>
